package bavaria.hightech.testit;

import java.io.FileOutputStream;
import java.io.IOException;

import bavaria.hightech.banking.account.Account;
import bavaria.hightech.banking.account.AccountType;
import bavaria.hightech.banking.bank.BankImpl;
import bavaria.hightech.banking.bank.Currency;
import bavaria.hightech.banking.bank.Money;
import bavaria.hightech.banking.condition.ContractPeriod;

public class StatementTest {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		// Locale.setDefault(Locale.ENGLISH);
		BankImpl bank = new BankImpl();
		Account account = bank.newAccount("karlheinz", AccountType.GIRO,
				ContractPeriod.ONE_YEAR);
		Money money = new Money(1000, Currency.EURO);
		account.deposit(money, "gehalt");
		bank.getStatement(account.getNumber(), new FileOutputStream(
				"C:\\statement.html"), "text/html");
	}
}
